let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n12,
                    i =
                    (this && this.__extends) ||
                    ((_n12 = function n(t, e) {
                            return (_n12 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n12(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.AbsCtrl = void 0);
                var r = t('AbsInfo'),
                    a = t('AbsActor'),
                    s = t('BattleUtils'),
                    c = (function(t) {
                        function e(e) {
                            var o = t.call(this) || this;
                            return (
                                (o._hp = o._hpMax = 0),
                                (o._battlers = []),
                                (o._removes = []),
                                (o._scene = e),
                                o
                            );
                        }
                        return (
                            i(e, t),
                            (e.prototype.remove = function(t, e) {
                                void 0 === e && (e = !1),
                                    this._removes.push(t),
                                    this._scene && this._scene.removeActor(t, e);
                            }),
                            (e.prototype.setRound = function(t) {
                                this.stop(), (this._round = t), this.onRoundChanged(t);
                            }),
                            (e.prototype.onRoundChanged = function() {}),
                            Object.defineProperty(e.prototype, 'camp', {
                                get: function get() {
                                    return this._camp;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'hpMax', {
                                get: function get() {
                                    return this._hpMax;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'hp', {
                                get: function get() {
                                    return this._hp;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            (e.prototype.getWaitActor = function() {
                                for (var t = 0; t < this._battlers.length; t++) {
                                    var e = this._battlers[t];
                                    if (e && e.hp > 0 && e.state == a.ActorState.Await) return e;
                                }
                                return null;
                            }),
                            (e.prototype.update = function(t) {
                                if (this._removes.length > 0) {
                                    for (var e = 0; e < this._removes.length; e++) {
                                        for (
                                            var o = this._removes[e], n = 0; n < this._battlers.length; n++
                                        ) {
                                            this._battlers[n].objId == o.objId &&
                                                (this._battlers.splice(n, 1),
                                                    (n = this._battlers.length));
                                        }
                                    }
                                    this._removes = [];
                                }
                                if (this._isStart) this.onUpdate(t);
                                else {
                                    var i = 0;
                                    for (e = 0; e < this._battlers.length; e++) {
                                        (o = this._battlers[e]).type == a.ActorType.Soldier ?
                                            (i += Math.pow(s.default.MergeCount, o.info.level - 1)) :
                                            (i += this._battlers[e].info.level);
                                    }
                                    this._power != i &&
                                        ((this._power = i), this.emit(r.InfoEvent.PowerChanged, i));
                                }
                            }),
                            (e.prototype.onUpdate = function() {}),
                            (e.prototype.start = function() {
                                this._isStart || ((this._isStart = !0), this.onStart());
                            }),
                            (e.prototype.onStart = function() {}),
                            (e.prototype.stop = function() {
                                this._isStart && ((this._isStart = !1), this.onStop());
                            }),
                            (e.prototype.onStop = function() {}),
                            (e.prototype.destroy = function() {
                                this.stop(), (this._battlers = null);
                            }),
                            e
                        );
                    })(cc.EventTarget);
                (o.AbsCtrl = c), console.log("end");
            module.exports =  e.exports;